<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:import href="../config.xsl"/>
	<xsl:template match="/">
		<mdp>
			<xsl:choose>
				<xsl:when test="//param[@key='title']/@value='' and //param[@key='keywords']/@value='' and  //param[@key='keywords']/@value=''  and //param[@key='frontForDept']/@value=''">
					<msc type="servermsg" isactionsucces="1" priority="high">
						<msg show="true">您最少要输入一种搜索条件！</msg>
					</msc>
				</xsl:when>
				<xsl:otherwise>
					<tc>
						<url>
							<xsl:value-of select="$url"/>
							<xsl:value-of select="//param[@key='action_url']/@value"/>
						</url>
						<params>
							<xsl:apply-templates select="//param"/>
						</params>
						<method>POST</method>
						<encoding>gb2312</encoding>
					</tc>
				</xsl:otherwise>
			</xsl:choose>
		</mdp>
	</xsl:template>
	<xsl:template match="param">
		<param key="{@key}" value="{@value}"/>
	</xsl:template>
</xsl:stylesheet>
